<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
	body{
		background:#fff;
	}
	#back{
		width: 100px;
		height: 100px;
		background: #000;
	}
	#back img{
		width: 100%;
	}
	</style>
</head>
<body>
<div id="back">
	<img src="../image/back.png">
</div>
<script>
	apiready = function(){
	    api.getPrefs({
		    key: 'aid'
		}, function(ret, err){
			alert('刚才点击的元素的序号是'+ret.value);
		})
	}
	

	document.getElementById('back').onclick = function(){
		api.closeWin();
	}  
</script>
</body>
</html>